import Vue from "vue";
import Vuex from "vuex";

Vue.use(Vuex);

/**
 * state: 相当于data
 * getters：相当于computed计算属性
 * mutations：相当于methods
 * actions：asyc methods异步
 * modules：模块 分割代码
 */
export default new Vuex.Store({
  state: {},
  mutations: {},
  actions: {},
  modules: {}
});
